<div ng-controller="MapCtrl">

    <div class="row main-con">


        <!--一级地图-->
        <wt-map mapid="map1" height="mapheight" showgdmap="true" map-intialed="mapIntialed(this)"></wt-map>

        <!--二级地图-->
        <div style="position:absolute; top: 0px; width: 100%;  z-index:55;">
            <div style="width: 100%; height:{{ mapheight }}px; background:#ffffff " class="fade" ng-if="isPopup">

                <wt-map mapid="map2" height="mapheight" showgdmap="false" map-intialed="mapcadIntialed(this)"></wt-map>

                <button style="position:absolute; right:100px; bottom:30px; z-index:55;" ng-click="goback(this)" type="button" class="btn btn-primary ">返回</button>


            </div>
        </div>

        <button type="button" style="position:absolute;left:10px; bottom:10px;z-index:99;" class="btn btn-primary " data-toggle="collapse" data-target="#info">
            <span class="glyphicon glyphicon-expand"/></button>
        <div id="info" style="position:absolute;left:10px;bottom:20px;  z-index:98;" class="collapse">

            <div class="panel-group" id="accordion2" style="width :200px"/>
            <div class="panel panel-default">
                <div class="list-group-item active">
                    <h4 class="panel-title">图例</h4>
                </div>
                <div id="collapseOne2" class="panel-collapse collapse in">
                    <div class="panel-body panel-heading " style="font-size:10px">
                        <label><input checked ng-click="layerchecked('factorylry',$event)" id="factorylry" type='checkbox'/>
                            <span class='text'></span> </label>
                        <img width="32" ; height="32" src='assets/img/Icons/Factory_机房32.png'/>机房
                    </div>
                    <div class="panel-body panel-heading " style="font-size:10px">
                        <label><input checked disabled="true" ng-click='layerchecked(1,$event)' id="checkpoint" type='checkbox'/>
                            <span class='text'></span> </label>
                        <img width="32" ; height="32" src='assets/img/Icons/patron_巡查点32.png'/>巡查点
                    </div>
                </div>

                <div class="list-group-item active">
                    <h4 class="panel-title">
                        <label><input checked disabled="true" ng-click='layerchecked(0,$event)' id="danger" type='checkbox'/>
                            <span class='text'>隐患点</span> </label></h4>
                </div>
                <div id="collapseOne1" class="panel-collapse collapse in">
                    <div class="panel-body panel-heading " style="font-size:10px">
                        <img width="32" height="32" src='assets/img/Icons/待处理32.png'/>待处理
                        <img width="32" height="32" src='assets/img/Icons/处理中32.png'/>处理中
                        <img width="32" height="32" src='assets/img/Icons/已处理32.png'/>已处理
                    </div>
                </div>
            </div>

        </div>

        <!--<button style="position:absolute;left:50px; bottom:10px;z-index:99;" ng-click="testclick1()" type="button" class="btn btn-primary ">打开地图</button>-->


    </div>

    <!-- 维修编号 -->
    <div class="modal fade" id="detailModal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span> <span class="sr-only">Close</span>
                    </button>
                    <h4 class="modal-title">维修任务概况</h4>
                </div>
                <div class="modal-body">
                    <div class="panel-info report">
                        <dl>
                            <dt>维修任务编号:</dt>
                            <dd ng-bind="servicingDetailModel.Id"></dd>
                        </dl>
                        <dl>
                            <dt>状态:</dt>
                            <dd ng-bind="wtSys.Emun.MissionStatus|getEmunName:servicingDetailModel.MissionStatus"></dd>
                        </dl>
                        <dl>
                            <dt>紧急程度:</dt>
                            <dd ng-bind="wtSys.Emun.MissionLevel|getEmunName:servicingDetailModel.MissionLevel"></dd>
                        </dl>
                        <dl>
                            <dt>处理人:</dt>
                            <dd ng-bind="servicingDetailModel.HandlerName"></dd>
                        </dl>
                        <dl>
                            <dt>创建时间:</dt>
                            <dd ng-bind="servicingDetailModel.CreateTime | date : 'yyyy-MM-dd HH:mm:ss'"></dd>
                        </dl>
                        <dl>
                            <dt>创建人:</dt>
                            <dd ng-bind="servicingDetailModel.User"></dd>
                        </dl>
                        <dl>
                            <dt>维修要点:</dt>
                            <dd ng-bind="servicingDetailModel.Note"></dd>
                        </dl>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <div class="modal fade" id="editModal">
        <div class="modal-dialog" style="background:#ffffff;width:800px ">
            <wtmap-Pointselect toolitems="toolItems" pointlayers="pointLayers" resultdatas="selecedresults" initialayer="initialayer"></wtmap-Pointselect>
        </div>
    </div>
</div>


